<?php 

class SF_Ordertrackinginfo_Helper_Data extends Mage_Core_Helper_Data{
    
    
    protected function _toHtml()
    {
        $this->setTemplate('ordertrackinginfo/ordertrackinginfo.phtml');
        return parent::_toHtml();
    }
    
    public function getTrackingInfo($orderid){
    
        $_host = 'http://127.0.0.1:8080/rumall/services/rumallInterService?wsdl';
        $xml =
        "
        <QueryRoute><queryType>DB</queryType><ID>{$orderid}</ID></QueryRoute>
        ";
        try{
                $soap = new SoapClient($_host);
                $result = $soap->queryRoute($xml);
                $xml=simplexml_load_string($result) or die("Error: Cannot create object");
                return $RouteResponse = $xml->Body; //return object
            }catch(Exception $e){
                
            }
    
    }    
    
    
}



